home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 272_01 / isleap.doc < prev    next >
Text File  |  1987-07-15  |  628b  |  39 lines

  1.  
  2.  
  3.        NAME
  4.                isleap -- check if year is a leap year
  5.  
  6.        SYNOPSIS
  7.                r = isleap(year);
  8.                int r;          returns TRUE if leapyear, else FALSE
  9.                int year;       year value
  10.  
  11.        DESCRIPTION
  12.        This function simply checks the specified year to return a
  13.        TRUE if the specified year is a leap year.
  14.  
  15.  
  16.  
  17.        EXAMPLE
  18.  
  19.                if(isleap(1986)) printf("This is a leap year");
  20.                else printf("This is not a leap year");
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.        This function is found in SMDLx.LIB for the Datalight Compiler.
  39.